/**
 * 获取GET参数
 * @param {type} name
 * @returns {unresolved}
 */
var getParameter = function(name) {
    var str = window.location.search;
    var index = str.indexOf("?" + name + "=");
    if (index == -1) {
        index = str.indexOf("&" + name + "=");
    }
    if (index == -1) {
        return null;
    }
    var end = str.indexOf("&", index + 1);
    if (end == -1) {
        return str.substring(index + 2 + name.length);
    } else {
        return str.substring(index + 2 + name.length, end);
    }
};
/**
 * 是否安卓浏览器
 * @returns {Boolean.isAndroid}
 */
var isAndroid = function(){
    var u = navigator.userAgent, app = navigator.appVersion;
    var isAndroid = u.indexOf('Android') > -1 || u.indexOf('Linux') > -1; //android终端或者uc浏览器
    return isAndroid;
};
/**
 * 是否IOS浏览器
 * @returns {Boolean.isIos}
 */
var isIos = function(){
    var u = navigator.userAgent, app = navigator.appVersion;
    var isIos = !!u.match(/\(i[^;]+;( U;)? CPU.+Mac OS X/); //ios终端
    return isIos;
};